package com.net.xpay.common.manager.invoice;

import com.net.xpay.common.domain.invoice.Invoice;
import com.net.xpay.core.model.InvoiceSearchModel;
import com.net.common.manager.DomainManager;

import java.util.List;


public interface InvoiceManager extends DomainManager<Long, Invoice> {

    List<Invoice> search(InvoiceSearchModel searchModel);

    long searchCount(InvoiceSearchModel searchModel);

    /**
     *通过userId id查询发票信息
     */
    Invoice findById(Long userId, Long id);
}
